package twoD.IsoPfem.EmbeddedCrackModel;

public class ExponentialTractionSeparationLaw implements ITractionSeparationLaw {

	private double ef_;
	private double ft_;

	public ExponentialTractionSeparationLaw(double ef, double ft) {
		ef_ = ef;
		ft_ = ft;
	}

	@Override
	public double g(double en) {
		return ft_ * Math.exp(-en / ef_);
	}

	@Override
	public double dg(double en) {
		return -g(en) / ef_;
	}

	@Override
	public double getTensileStrength() {
		return ft_;
	}

	@Override
	public double getEf() {
		return ef_;
	}

}
